package com.hotel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author 关注公众号：MarkerHub
 * @since 2020-10-19
 */
@Data
@Entity//表面实体类
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class House implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @Id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 房间号
     */
    private String name;
    /**
     * 可容乃人数的文字性说明
     */
    private String amount;
    /**
     * 单价
     */
    private BigDecimal price;
    /**
     * 所在楼层
     */
    private Integer floorId;
    /**
     * 状态(是否可用)
     */
    private Integer state;
    /**
     * 当前在住的customer
     */
    private Integer customerId;


}
